package cn.java86.myschool.dao;

import cn.java86.myschool.entity.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SubjectDao {
    public int add(Subject s);

    public int update(Subject s);

    public int del(Long id);

    public Subject get(Long id);

    @Deprecated
    public List<Subject> findAll();

    public List<Subject> search(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("name") String name);

    //总共有多少门课
    public long findTotal(@Param("name") String name);
}
